<?php 

namespace Acme\UserBundle\Form\CustomFieldType;
 
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class EmailStatusType extends AbstractType
{
	public function getParent(array $options)
	{
		return 'choice';
	}
	
    private $emailStatusChoices;

    public function __construct(array $emailStatusChoices)
    {
        $this->emailStatusChoices = $emailStatusChoices;
    }

    public function getDefaultOptions(array $options)
    {
        return array(
				'choices' => $this->emailStatusChoices,
        		'label' => '邮箱状态',
        		'empty_value' => '请选择',
        );
    }

    public function getName()
    {
    	return 'email_status';
    }
	
}